<template>
  <div class="login-account">
    <el-form ref="loginFormRef" :model="loginForm" label-width="60px">
      <el-form-item prop="phonenumber" label="手机号">
        <el-input v-model="loginForm.phonenumber" />
      </el-form-item>
      <el-form-item prop="verifyCode" label="验证码">
        <div class="verify-cont">
          <el-input v-model="loginForm.verifyCode" />
          <el-button type="primary">获取验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from 'vue'

export default defineComponent({
  setup() {
    const loginForm = reactive({
      phonenumber: '',
      verifyCode: ''
    })
    return {
      loginForm
    }
  }
})
</script>

<style scoped lang="less">
.verify-cont {
  display: flex;
  .el-input {
    margin-right: 6px;
  }
}
</style>
